<?php

// +----------------------------------------------------------------------
// | quanli team
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2020 http://www.fistforward.com/ All rights reserved.
// +----------------------------------------------------------------------
// | Author: create by allen.qiang
// +----------------------------------------------------------------------

/**
 * 商品营养成分信息
 *
 * @package 	htdocs
 * @subpackage  quanliadmin
 * @author  	create by allen.qiang
 */

class pa_goodsNutrition {

    public function execute() {

        if (isset($_REQUEST['operFlg']) && $_REQUEST['operFlg'] > 0) {
            switch ($_REQUEST['operFlg']) {
                case 1:
                    $this->goodsNutritionList();	//商品营养成分信息列表
                    break;
                default:
                    backendError();
            }
        } else {
            backendError();
        }

    }

    /**
     * 商品营养成分信息列表
     */
    private function goodsNutritionList() {

        global $G_PGLOB;

        //编辑权限
        $G_PGLOB->smarty->assign('edit_permission',$G_PGLOB->has_permission(541));

        $G_PGLOB->smarty->display('goods/goodsNutritionList.tpl');

    }

}